package com.wufan.day05.exer1;

/**
 * @author SongWufan
 * @date 2021/3/9 21:27
 */
public class Triangle {
    private double base;
    private double height;

    public Triangle() {

    }

    public Triangle(double base,double height) {
        this.base = base;
        this.height = base;
    }

    public void setBase(double base) {
        this.base = base;
    }

    public double getBase() {
        return base;
    }

    public void setHeight(double height) {
        this.height = height;
    }

    public double getHeight() {
        return height;
    }
}
